package taskk;

public class Task1Demo1 {


    public static void task1() {
        System.out.println("执行任务1");
        new Thread(() -> {
            task2();
        }).start();
    }

    public static void task2() {
        System.out.println("执行任务2");
        task3();
    }

    public static void task3() {
        System.out.println("执行任务3");
        task4();
    }

    public static void task4() {
        System.out.println("执行任务4");
    }


}
